# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class ListOrganizationalUnitsRequest(RpcRequest):

	def __init__(self):
		RpcRequest.__init__(self, 'Eiam', '2021-12-01', 'ListOrganizationalUnits','eiam')
		self.set_protocol_type('https')
		self.set_method('POST')

	def get_OrganizationalUnitNameStartsWith(self): # String
		return self.get_query_params().get('OrganizationalUnitNameStartsWith')

	def set_OrganizationalUnitNameStartsWith(self, OrganizationalUnitNameStartsWith):  # String
		self.add_query_param('OrganizationalUnitNameStartsWith', OrganizationalUnitNameStartsWith)
	def get_PageNumber(self): # Long
		return self.get_query_params().get('PageNumber')

	def set_PageNumber(self, PageNumber):  # Long
		self.add_query_param('PageNumber', PageNumber)
	def get_ParentId(self): # String
		return self.get_query_params().get('ParentId')

	def set_ParentId(self, ParentId):  # String
		self.add_query_param('ParentId', ParentId)
	def get_PageSize(self): # Long
		return self.get_query_params().get('PageSize')

	def set_PageSize(self, PageSize):  # Long
		self.add_query_param('PageSize', PageSize)
	def get_OrganizationalUnitIds(self): # Array
		return self.get_query_params().get('OrganizationalUnitIds')

	def set_OrganizationalUnitIds(self, OrganizationalUnitIds):  # Array
		for index1, value1 in enumerate(OrganizationalUnitIds):
			self.add_query_param('OrganizationalUnitIds.' + str(index1 + 1), value1)
	def get_OrganizationalUnitName(self): # String
		return self.get_query_params().get('OrganizationalUnitName')

	def set_OrganizationalUnitName(self, OrganizationalUnitName):  # String
		self.add_query_param('OrganizationalUnitName', OrganizationalUnitName)
	def get_InstanceId(self): # String
		return self.get_query_params().get('InstanceId')

	def set_InstanceId(self, InstanceId):  # String
		self.add_query_param('InstanceId', InstanceId)
